import { PureComponent } from 'react'
import SingleTable from 'components/table/index'
import { Input, Button, Select } from 'antd'
import styles from './singleTask.less'
const { Option } = Select
export default class SingleTask extends PureComponent {
    render(){
        const columns = [
            {
                key: 'gmtCreate',
                title: '合单号',
                dataIndex: 'gmtCreate',
                align: 'center',
            },
            {
                key: 'operationTypeName',
                title: '当前货物件数',
                dataIndex: 'operationTypeName',
                align: 'center',
            },
            {
                key: 'creatorName',
                title: '当前批次运单件数',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
                key: '4',
                title: '任务状态',
                dataIndex: 'creatorName',
                align: 'center',
            },
            {
              key: '5',
              title: '货架号',
              dataIndex: 'creatorName',
              align: 'center',
            },
            {
              key: '6',
              title: '查看详情',
              dataIndex: 'creatorName',
              align: 'center',
            },
          ]
          const dataList = []
        return(
            <div className={styles.singleTask}>
                <div className={styles.singleTaskBox}>
                    <h2>合单任务列表</h2>
                </div>
                <div className={styles.singleTaskSearch}>
                    <div className={styles.singleTaskSin}>
                        <span className={styles.singleTaskSpan}>合单号：</span>
                        <Input className={styles.singleTaskInput}/>
                    </div>
                    <div className={styles.singleTaskSin} style={{marginLeft: '28px'}}>
                        <span className={styles.singleTaskSpan}>合单号：</span>
                        <Select className={styles.singleTaskInput}>
                            <Option value="value">value</Option>
                        </Select>
                    </div>
                </div>
                <Button type="primary" icon="search" style={{margin: '0 0 24px 24px'}}>查询</Button>
                <div className={styles.singleTaskTable}>
                    <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}